﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICSharpCode.Core;

namespace Agnes.Core
{
    public class ToolPadDoozer : IDoozer
    {
        public object BuildItem(object caller, Codon codon, System.Collections.ArrayList subItems)
        {
            return new ToolPadDiscriptor(codon, caller);
        }

        public bool HandleConditions
        {
            get { return false; }
        }
    }

    public sealed class ToolPadDiscriptor
    {
        public readonly Codon Codon;
        public readonly object Owner;

        public ToolPadDiscriptor(Codon codon, object owner)
        {
            Codon = codon;
            Owner = owner;
        }
    }
}